﻿	config.eventcfg = {	
		pattach: function() {
			var records = this.grid.getSelectionModel().getSelections();
			if (!JxUtil.selectone(records)) return;
			
			var self = this;
			var keyid = records[0].get('contract_pay__project_id');
			
			var params = 'projectid=' + keyid + '&funid=pay_plan';
			params += '&pagetype=grid&eventcode=pattach';

			//发送请求，取相关附件ID
			Request.postRequest(params, function(data){JxPm.showAttach(data, 'pay_plan', keyid);});
		}
	};